package com.southminority.ethnic.controller.coures.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.*;

/**
 * 课程评价请求VO
 * 
 * @author SouthMinority
 */
@Data
@Schema(description = "课程评价请求")
public class CourseEvaluationReqVo {

    @Schema(description = "课程ID", required = true)
    @NotNull(message = "课程ID不能为空")
    private Long courseId;

    @Schema(description = "评价分数（1-5分）", required = true)
    @NotNull(message = "评价分数不能为空")
    @Min(value = 1, message = "评价分数最小为1分")
    @Max(value = 5, message = "评价分数最大为5分")
    private Integer rating;

    @Schema(description = "评价内容", required = true)
    @NotBlank(message = "评价内容不能为空")
    @Size(max = 1000, message = "评价内容不能超过1000字符")
    private String content;
} 